Rework count-words-region. New command count-words.
authorChong Yidong <cyd@stupidchicken.com>
Sat, 8 Oct 2011 16:37:46 +0000 (12:37 -0400)
committerChong Yidong <cyd@stupidchicken.com>
Sat, 8 Oct 2011 16:37:46 +0000 (12:37 -0400)
commit12e29701e659dbbc3ed67b2641bdf73cfabd0357
treed00dc02d79b56e81d5d15b1f8b977a37146d5d42
parent327e3f62ca679fdd4f650f380b8c8677204c9615
Rework count-words-region.  New command count-words.

See discussion at http://lists.gnu.org/archive/html/emacs-devel/2011-10/msg00193.html

* lisp/simple.el (count-words-region): Always count in the region.
Report the number of lines and characters too.
(count-words): New command, which counts in the buffer if the
region is inactive, as count-words-region used to.
(count-words--message): New function.  Handle plurals.
(count-lines-region): Make it an alias for count-words-region.

* lisp/bindings.el (esc-map): Replace count-lines-region with
count-words-region.

* doc/emacs/basic.texi (Position Info): Omit page commands.  Document
count-words-region and count-words.

* doc/emacs/text.texi (Pages): Move what-page documentation here.
doc/emacs/ChangeLog
doc/emacs/basic.texi
doc/emacs/emacs.texi
doc/emacs/text.texi
etc/NEWS
lisp/ChangeLog
lisp/bindings.el
lisp/simple.el